# name : sgplot: vbox template
# key : vboxplot.template@sgplot
# contributor: Shuguang Sun
# --
ods graphics on / attrpriority=none;
title "${title}";
proc sgplot data=${1:dtin} noautolegend;
   styleattrs datasymbols=(circlefilled squarefilled starfilled);
   vbox x=${2:x} / category=${4:cat} connect=mean
   connectattrs=(color=black pattern=mediumdash thickness=1)
   meanattrs=(symbol=plus color=red size=20)
   lineattrs=(color=black)
   medianattrs=(color=black)
   whiskerattrs=(color=black)
   outlierattrs=(color=green symbol=starfilled size=12);
   xaxis label = '${5:xlabel}' display=(nolabel noline noticks);
   yaxis label = '${6:ylabel}' display=(noline noticks) labelattrs=(weight=bold);
   keylegend / location=inside position=NE across=1;
run;
ods graphics / attrpriority=color;
title;